package com.learn.mqq.service.impl;

import com.learn.mqq.entity.YxExamAnswer;
import com.learn.mqq.mapper.YxExamAnswerMapper;
import com.learn.mqq.service.IYxExamAnswerService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author guowenhao
 * @since 2023-12-04
 */
@Transactional
@Service
public class YxExamAnswerServiceImpl extends ServiceImpl<YxExamAnswerMapper, YxExamAnswer> implements IYxExamAnswerService {
    @Autowired
    private YxExamAnswerMapper yxExamAnswerMapper;
    @Override
    public BigDecimal countScore(Long userId, Long examLogId) {
        return yxExamAnswerMapper.selectCountScore(userId, examLogId);
    }
}
